package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LoanChannelNdInfoService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanChannelNdInfoRequest;
import com.tuanzi.loan.vo.response.family.LoanChannelNdInfoResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 16:07 2019/8/6
 * Description:
 */
public class LoanChannelNdInfoLazyDataModel extends BaseLazyDataModel<LoanChannelNdInfoRequest, LoanChannelNdInfoResponse> {
    private static final long serialVersionUID = -3583902984073151300L;

    private LoanChannelNdInfoService loanChannelNdInfoService = SpringContextHolder.getBean(LoanChannelNdInfoService.class);

    public LoanChannelNdInfoLazyDataModel(LoanChannelNdInfoRequest loanChannelNdInfoRequest) {
        super(loanChannelNdInfoRequest);
    }

    @Override
    protected Page<LoanChannelNdInfoResponse> doLoad(PageSearcher<LoanChannelNdInfoRequest> pageSearcher) {
        return loanChannelNdInfoService.list(pageSearcher);
    }
}
